//
//  BHFunPublishRelateModel.swift
//  BigHealth
//
//  Created by 蔺百好 on 2021/8/17.
//

import UIKit

class BHFunPublishRelateModel {
    var cityName: String = ""
    var areaName: String = ""
    var distance: String = "" // 距离; 用户未授权  为null
    var beginTime: String = ""
    var relationName: String = ""
    var venueId: String = ""
    var relationPic: String = ""
    
    func parseDic(dic: [String: Any])  {
        self.cityName = BHJsonTool.decodeStringFromDic(dic: dic, key: "cityName")
        self.areaName = BHJsonTool.decodeStringFromDic(dic: dic, key: "areaName")
        self.distance = BHJsonTool.decodeStringFromDic(dic: dic, key: "distance")
        self.beginTime = BHJsonTool.decodeStringFromDic(dic: dic, key: "beginTime")
        self.relationName = BHJsonTool.decodeStringFromDic(dic: dic, key: "relationName")
        self.venueId = BHJsonTool.decodeStringFromDic(dic: dic, key: "id")
        self.relationPic = BHJsonTool.decodeStringFromDic(dic: dic, key: "relationPic")
    }
}
